<template>
<div class="header">
  <div class="header-left"><span class="iconfont icon-fanhui"></span></div>
  <div class="header-input"><span class="iconfont icon-search"></span> 请输入城市</div>
  <router-link to="/city">
  	<div class="header-right">{{this.$store.state.city}} <span class="iconfont icon-arrow-down"></span></div>
  </router-link>
</div>
</template>

<script>
export default {
  name: 'HomeHeader'
}
</script>

<style lang="stylus" scoped>/*stylus的使用方法<style lang="stylus>*/
@import '~styles/varibles.styl'/*导入styl，@/assets/styles配置简写styles*/
.header
	background:$bgColor /*stylus的引用方法background:$bgColor(变量名字)*/
	height:$headerHeight
	line-height:$headerHeight
	display: flex
	color: #fff
	.header-left
		width: .6rem
		text-align: center
	.header-input
		flex: 1
		background: #fff
		margin: .1rem
		border-radius: .05rem
		color: #ccc
		line-height: .66rem
		text-indent: .1rem
	.header-right
		min-width: 1.1rem
		padding: 0 .1rem
		text-align: center
		color:#fff
	.icon-arrow-down
		font-size: .24rem
</style>
